import { STORAGE_USERINFO_KEY } from '@/utils/constants/index';

const useUser = () => {
  return localStorage.getItem(STORAGE_USERINFO_KEY) ? 
  JSON.parse(localStorage.getItem(STORAGE_USERINFO_KEY) as string) 
  : null;
};

export default useUser;
